<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <alert-msg>类型错误</alert-msg>
        <alert-msg>服务器内部错误</alert-msg>
        <alert-msg></alert-msg>
    </div>
    <script src="../node_modules/vue/dist/vue.js"></script>
    <script>
        Vue.component('alert-msg',{
            template:`
                <div>
                    <strong>Err</strong>
                    <slot>bug</slot>     
                </div>
            `
        })
        new Vue({
            el: '#app'
        })
    </script>
</body>

</html>